package cn.dust.design.pattern.behavioral.chainofresponsibility;

/**
 * @Author: dust
 * @Date: 2019/11/28 18:46
 */
public class Test {
    public static void main(String[] args) {
        ArticleApprover articleApprover=new ArticleApprover();
        VideoApprover videoApprover=new VideoApprover();
        Course course=new Course();
        course.setName("java");
        course.setArticle("article");
        course.setVideo("video");

        articleApprover.setNextApprover(videoApprover);
        articleApprover.deploy(course);
    }
}
